package com.tan.po3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Value("${message}")//取properties中的值
    private String message;
    public UserController(){
        System.out.println("Controller层"+message);
    }
}
